import json
def convert_tags_to_format():
    # 原始标签列表
    ids = [
        33,
        32,
        31,
        30,
        29,
        28,
        27,
        26,
        25,
        24,
        23,
        22,
        21,
        20,
        19,
        18,
        17,
        16,
        15,
        14,
        13,
        12,
        11,
        10,
        9,
        8,
        7,
        6,
        5,
        4,
        3,
        2,
        1
    ]

    # 转换为目标格式
    result = [{"id": id, "delFlag": 1} for id in ids]
    return result


# 示例用法
if __name__ == "__main__":
    converted_tags = convert_tags_to_format()
    # 使用json.dumps确保输出使用双引号
    print(json.dumps(converted_tags, indent=4, ensure_ascii=False))